package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.common.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppointmentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Appointment appointment);

    Appointment selectByPrimaryKey(Long id);

    List<Appointment> selectAll();

    int updateByPrimaryKey(Appointment appointment);

    List<Appointment> selectForList(QueryObject qo);

    void updateStatus(@Param("appointmentId")Long id, @Param("statusArrival") Integer statusArrival);

    void updateIsDel(Long id);
}